Re: [SQL] SELECT multiple tables with same fields
От | Herouth Maoz |
---|---|
Тема | Re: [SQL] SELECT multiple tables with same fields |
Дата | |
Msg-id | l03130307b3f98f0fffce@[147.233.159.109] обсуждение исходный текст |
Ответ на | SELECT multiple tables with same fields ("Dipl.-Ing. Thomas Schallar" <T.Schallar@AVALON.at>) |
Список | pgsql-sql |
At 18:43 +0300 on 29/08/1999, Dipl.-Ing. Thomas Schallar wrote: > But if I add fields, than I have to add > them to each of the SELECT statements also, that they won't be missed > off. That's boaring und faulty. One may argue about that. I was told in the past never to use * except when "just checking", i.e. when running something ad-hoc in psql. In applications, it is always recommended to write the names of the fields explicitly, which makes sure you don't include fields which are not really needed, and you know exactly what you got back and why you got it. The minute you use an equijoin, you have one field which is truly redundant, not just by name, but also in value. I think that writing a query is something you do once, but many many redundant bytes will be transmitted as a result of being lazy during the writing of the query. Herouth -- Herouth Maoz, Internet developer. Open University of Israel - Telem project http://telem.openu.ac.il/~herutma
В списке pgsql-sql по дате отправления: